package Chapter08.HomeWork.Work04;

public abstract class Phone {
    String brand;
    String model;

    public abstract void call();
    public abstract void message();
    public void show(){
        System.out.println("手机品牌："+brand+",手机型号："+model);
    }
    public Phone() {
    }

    public Phone(String brand, String model) {
        this.brand = brand;
        this.model = model;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }
}
